package com.ruoyi.kuaipai.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 点数明细对象 kp_point_details
 *
 * @author 金龙
 * @date 2025-04-26
 */
public class KpPointDetails extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    private Long id;

    /**
     * 用户Id
     */
    @Excel(name = "用户Id")
    private Long userId;

    /**
     * 用户名字
     */
    @Excel(name = "用户名字")
    private String userName;

    /**
     * 用户手机
     */
    @Excel(name = "用户手机")
    private Long userPhone;

    /**
     * 用户类型
     */
    @Excel(name = "用户类型")
    private Long userType;

    /**
     * 收支类型
     */
    @Excel(name = "收支类型")
    private Integer transactionType;

    /**
     * 交易数量
     */
    @Excel(name = "交易数量")
    private Long changeAmount;

    /**
     * 当前余额
     */
    @Excel(name = "当前余额")
    private Long balanceAfterChange;

    /**
     * 事项类型
     */
    @Excel(name = "事项类型")
    private Long changeReasonCode;

    /**
     * 创建者
     */
    private String creator;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 更新人
     */
    private String updater;

    /**
     * 更新时间
     */
    private Date updateDate;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserPhone(Long userPhone) {
        this.userPhone = userPhone;
    }

    public Long getUserPhone() {
        return userPhone;
    }

    public void setUserType(Long userType) {
        this.userType = userType;
    }

    public Long getUserType() {
        return userType;
    }

    public void setTransactionType(Integer transactionType) {
        this.transactionType = transactionType;
    }

    public Integer getTransactionType() {
        return transactionType;
    }

    public void setChangeAmount(Long changeAmount) {
        this.changeAmount = changeAmount;
    }

    public Long getChangeAmount() {
        return changeAmount;
    }

    public void setBalanceAfterChange(Long balanceAfterChange) {
        this.balanceAfterChange = balanceAfterChange;
    }

    public Long getBalanceAfterChange() {
        return balanceAfterChange;
    }

    public void setChangeReasonCode(Long changeReasonCode) {
        this.changeReasonCode = changeReasonCode;
    }

    public Long getChangeReasonCode() {
        return changeReasonCode;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("userPhone", getUserPhone())
                .append("userType", getUserType())
                .append("transactionType", getTransactionType())
                .append("changeAmount", getChangeAmount())
                .append("balanceAfterChange", getBalanceAfterChange())
                .append("changeReasonCode", getChangeReasonCode())
                .append("creator", getCreator())
                .append("createDate", getCreateDate())
                .append("updater", getUpdater())
                .append("updateDate", getUpdateDate())
                .toString();
    }
}
